package com.cuit.zuke.consumer.service;

import com.cuit.zuke.consumer.pojo.Comment;

import java.util.List;

public interface
CommentService {
    /*查询所有评论*/
    List<Comment> queryAll(int currentPage, int pageSize);
    /*查询所有评论数量*/
    int queryTotal();
    List<Comment> queryCommentByUserId(String userId, int currentPage, int pageSize);
    int queryOneTotal(String userId);
    void updateIsDeleted(String commentId, int isDeleted);
    Comment queryCommentByCId(String commentId);
    List<Comment> queryUserByHotelId(String hotelId);
    /*查看最大评论id*/
    String maxCommentId();
    /*增加评论*/
    void insertComment(Comment comment);
    /*增加酒店评论*/
    void insertHotelComment(String hotelId, String content, String userId);
    /*增加酒店评论*/
    void insertGoodComment(String hotelId, String content, String userId);
}
